package com.bupt.liutong.front.sch.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

import com.bupt.liutong.admin.core.base.BaseAction;
import com.bupt.liutong.admin.sch.bo.IntroBo;
import com.bupt.liutong.admin.sch.bo.IntroPhotoBo;

public class IntroAction extends BaseAction {
	
	private IntroBo introBo;
	private IntroPhotoBo introPhotoBo;

	public ActionForward intro(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		request.setAttribute("sch_intro", introBo.getIntro());
		request.setAttribute("photoFormList", introPhotoBo.getIntroPhotos());
		return mapping.findForward("intro");
	}

	public void setIntroBo(IntroBo introBo) {
		this.introBo = introBo;
	}

	public void setIntroPhotoBo(IntroPhotoBo introPhotoBo) {
		this.introPhotoBo = introPhotoBo;
	}
}
